package com.iv.durian.cloud.dao.mapper;

import com.iv.durian.cloud.Banner;
import com.iv.durian.cloud.Coverage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by LiuLin on 2018/6/30 0030.
 */
public interface CoverageMapper {
    int add(@Param("coverage") Coverage coverage);

    int update(@Param("coverage") Coverage coverage);

    int remove(@Param("id") Integer id);

    int count(@Param("type") Integer type);

    List<Coverage> list(@Param("type") Integer type);

    Coverage get(@Param("id") Integer id);
}
